Skip to content

Fix up generated go code for arrays#872

Closed
andrewstucki wants to merge 1 commit intoelastic:mainfrom
andrewstucki:gocodegen-arrays
Closed

Fix up generated go code for arrays#872
andrewstucki wants to merge 1 commit intoelastic:mainfrom
andrewstucki:gocodegen-arrays

Conversation

@andrewstucki
Copy link
Copy Markdown
Contributor

I noticed recently when fixing up some packetbeat code that the generated structures for go don't respect array normalization--makes it so we have to do some gross stuff like this as a workaround right now:

type ecsEvent struct {
	ecs.Event `ecs:",inline"`
	// overridden because this needs to be an array
	Category []string `ecs:"category"`
	// overridden because this needs to be an array
	Type []string `ecs:"type"`
}

I'll see about adding in some json/common.MapStr serializers at some point in a follow-up.

@webmat
Copy link
Copy Markdown
Contributor

webmat commented Jun 26, 2020

If this Golang library is in use, it should be moved to a different repo. I'll be happy to help do that.

The ECS team doesn't have the resources or expertise to maintain it, and therefore issues raised about this library are not being addressed (see bug reports linked here ).

@webmat webmat added wontfix This will not be worked on and removed review labels Jun 26, 2020
@ebeahan
Copy link
Copy Markdown
Member

ebeahan commented Jan 27, 2022

Go code generator was removed in #1567

@ebeahan ebeahan closed this Jan 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

wontfix This will not be worked on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants